<template>
    <div>
        <h2><span>嗨</span>欢迎来到<span>{{user.username}}</span>的后台管理系统</h2>
    </div>
</template>

<script>
export default {
    data(){
        return{
            user:JSON.parse(sessionStorage.getItem('loginmsg'))
        }
    },
    mounted(){
        console.log(this.user)
    }
    
}
</script>

<style lang="scss" scoped>
h2{
    color: white;
}
span{
 &:nth-child(1){
        font-size: 40px;
    color: purple;
    margin-right: 14px;
    font-style: italic;
 }
 &:nth-child(2){
     font-size:40px;
        color: purple;
        margin: 0 14px;
        font-style: italic;
 }
    
}
</style>